import java.util.Scanner;

/**
 * Created with  IntelliJ IDEA .
 * Description:
 * User: lenovo
 * Date: 2025-${ MONTH }-10
 * Time: 11:11
 */
public class Text {
    public static void main1(String[] args) {
        int count = 0;
        for (int i = 0; i <= 100; i++) {
            if (i % 10 == 9 || i / 10 == 9) {
                count++;
            }

        }
        System.out.println(count);
    }

    public static void main2(String[] args) {
        int a = 5;
        int flag = 0;
        for (int i = 2; i < a; i++) {
            if (a % i == 0) {
                flag = 1;
            }
        }
        if (flag == 0) {
            System.out.println("是素数");
        } else {
            System.out.println("不是素数");
        }
    }

    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int count = scanner.nextInt();
            int a = count;
            for (int j = 1; j <= count; j++) {
                for (int i = 1; i <= count; i++) {
                    if (i == j || i == a) {
                        System.out.print('*');
                    } else {
                        System.out.print(' ');
                    }
                }
                System.out.print("\n");
                a--;

            }
        }
    }
    public static void main4(String[] args){
        for (int i = 100; i <= 999 ; i++) {
            int j = i;
            int a = 3;
            int sum = 0;
            while(a>0){
                int b = j % 10;
                j /= 10;
                sum += b*b*b;
                a--;
            }
            if(i == sum){
                System.out.println(i);
            }
        }

    }

    public static void main5(String[] args) {
        double sum = 0;
        int flag = 1;
        for (double i = 1; i <= 100; i++) {
            sum += flag * (1 / i);
            flag = -1 * flag;
        }
        System.out.println(sum);
    }
    public static void main6(String[] args){
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        if(a>b) {
            int c = 0;
            while (a % b != 0) {
                c = a % b;
                a = b;
                b = c;
            }
            System.out.println(a);
        }
        else{
            int c = 0;
            while (b % a != 0) {
                c = b % a;
                b = a;
                a = c;
            }
            System.out.println(b);

        }

    }

    public static void main7(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        while(b != 0){
            int temp = b;
            b = a % b;
            a = temp;
        }
        System.out.println(a);
    }
    public static void main8(String[] args){
        int a = -1;
        int count = 0;
        for (int i = 0; i < 32; i++) {
            if((a & 1<<i)!=0){
                count++;
            }
        }
        System.out.println(count);
    }
    public static void main9(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int i;
        for (i = 2;i < n;i++) {
            if(n%i == 0) {
                System.out.println("n不是素数："+n);
                break;
            }
        }
        if(i >= n) {
            System.out.println(n + "是素数");
        }
    }
    public static int sum(int n){
        if(n < 10){
            return n;
        }
        return n % 10+sum(n/10);
    }

   public static int fib(int n){
        if(n == 1 || n == 2){
            return 1;
        }
        return fib(n-1)+fib(n-2);
   }
   public static int fib2(int n){
        int f1 = 1;
        int f2 = 1;
        int f3 = 0;
       for (int i = 3; i <= n; i++) {
           f3 = f1 + f2;
           f1 = f2;
           f2 = f3;
       }
       return f3;
   }

}

